<%--
  $Id: listInclude.jsp 18 2013-03-20 14:14:51Z gabakyan $
  $Author: gabakyan $
  $Revision: 18 $
  $Date: 2013-03-20 14:14:51 +0000 (Wed, 20 Mar 2013) $

  Copyright (c) 2013 Supply Chain Intelligence (SCI), Inc.
  http://www.scintelligence.com/, Email: info@scintelligence.com
  All rights reserved.

  This file is part of Logistics Map.

  Logistics Map is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, version 3 of the License.

  Logistics Map is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with Logistics Map.  If not, see <http://www.gnu.org/licenses/>.
--%>
            <table class="table table-striped">
                <thead>
                    <tr>
                        <%--<th></th>--%>
                        <th><fmt:message key="includes.admin.resourceBundleMessage.listInclude.label.code"/></th>
                        <th><fmt:message key="includes.admin.resourceBundleMessage.listInclude.label.message"/></th>
                        <th><fmt:message key="common.label.action"/></th>
                    </tr>
                </thead>
                <tbody>
                    <%--<c:set var="first" value="${messagePage.size * messagePage.number}"/>--%>
                    <c:forEach items="${messagePage.content}" var="message" varStatus="status">
                        <c:url var="editUrl" value="/admin/resource-bundle-message/edit">
                            <c:param name="code" value="${message.code}" />
                        </c:url>
                    <tr class="${status.count % 2 == 0 ? 'even' : 'odd'}">
                        <%--<td>${first + status.count}</td>--%>
                        <td>${message.code}</td>
                        <td><pre class="pre-scrollable">${message.message}</pre></td>
                        <td><a href="${editUrl}" class="btn" title="<fmt:message key="common.title.editLink"/>"><fmt:message key="common.label.editLink"/></a></td>
                    </tr>
                    </c:forEach>
                </tbody>
            </table>

            <myutil:pagination page="${messagePage.number}" pageSize="${messagePage.number}" totalPages="${messagePage.totalPages}" total="${messagePage.total}" baseUrl="/admin/resource-bundle-message"/>

